import React, {useEffect} from 'react'
// swiper@5.4.5
import Swiper from 'swiper/js/swiper.js' // 引入js
import 'swiper/css/swiper.css' // 引入样式
import './index.css'

const DemoSwiper = () => {
    useEffect(() => {
        // 配置swiper播放 配置项都写这里面
        // const mySwiper = new Swiper('.swiper-container', {
        //   slidesPerView: 7,
        //   spaceBetween: 30,
        //   direction: "vertical",
        //   observer: true,//修改swiper自己或子元素时，自动初始化swiper 
        //   observeParents: true,//修改swiper的父元素时，自动初始化swiper 
        //   loop: true,
        //   autoplay: {
        //     disableOnInteraction: false,
        //   },
        //   centeredSlides: true,
        // })
    }, [])
    // swiper的html结构
    // 注意！！！：该版本中swiper最外层的类名一定是'swiper-container'，不要用其他的哦
    return (
      <div className="swipwe-box">
        <div className="swiper-container">
              <div className="swiper-wrapper">
                  <div className="swiper-slide">
                      https:/ /workspace .easyv.cloud/create/851601
                  </div>
                  <div className="swiper-slide">
                      https:/ /workspace.easyv.cloud/create/851601勒索软件
                  </div>
                  <div className="swiper-slide">
                      https:/ /workspace.easyv.cloud/create/ 851601挖矿
                  </div>
                  <div className="swiper-slide">
                      Ahttps:/ /workspace.easyv.cloud create/851601PT/勒索软件
                  </div>
                  <div className="swiper-slide">
                      https:/ /workspace.easyv.cloud/ create/851601僵户网络
                  </div>
                  <div className="swiper-slide">
                      https://workspace easyv.cloud/ create/851601网页篡改
                  </div>
                  <div className="swiper-slide">
                      https:/ /workspace.easyv.cloud/ create/851601VPN
                  </div>
                  <div className="swiper-slide">
                      https://workspace easyv.cloud/create/851601
                  </div>
              </div>
          </div>
      </div>
    )
    // <div className='swiper-container' style={{width: '400px', margin: 'auto', textAlign: 'center'}}>
    //     <div class="swiper-wrapper" style={{color: '#fff'}}>
    //         <div class="swiper-slide swiper-slide1" style={{backgroundColor: 'blue'}}>Slide 1</div>
    //         <div class="swiper-slide swiper-slide2" style={{ backgroundColor: 'red' }}>Slide 2</div>
    //         <div class="swiper-slide swiper-slide3" style={{ backgroundColor: 'yellow', color: '#333' }}>Slide 3</div>
    //     </div>
    // </div>
}

export default DemoSwiper